// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-12-06',
  srcDir: 'src/',
  ssr: true,
  devtools: { enabled: false },
  devServer: {
    host: '0.0.0.0',
    port: 3000
  },
  css: ['~/assets/css/main.scss'],
  modules: ['@nuxtjs/i18n'],
  i18n: {
    strategy: 'no_prefix',
    locales: [
      { code: 'en', name: 'English', file: 'en.json' },
      { code: 'zh-CN', name: '简体中文', file: 'zh-CN.json' },
      { code: 'zh-HK', name: '繁體中文', file: 'zh-HK.json' }
    ],
    defaultLocale: 'zh-CN'
  },
  plugins: [
    { src: '~/plugins/registerPlugin.js', mode: 'client' }
  ],
  app: {
    head: {
      meta: [
        { name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
        { name: 'keywords', content: 'nuxt3' },
        { name: 'description', content: 'nuxt3 + vue3' }
      ]
    }
  }
})
